This fixes a bug in changeset 22526:7a5ee3800417, where the wrong
authorTim Deegan <Tim.Deegan@citrix.com>
Wed, 16 Mar 2011 09:35:32 +0000 (09:35 +0000)
committerTim Deegan <Tim.Deegan@citrix.com>
Wed, 16 Mar 2011 09:35:32 +0000 (09:35 +0000)
commita63cc098560710c97ff62a797d4ad25ad7fa9a96
tree4136405dd081da2d30a6dbbafd7cf635c4e5b3c9
parenteca0cebba197edbc6aa452c86e8019ab8b955c81
This fixes a bug in changeset 22526:7a5ee3800417, where the wrong
value is read when deciding whether to flush the VTd tables.  The
effect is minor: in situations where the p2m entry is changed but the
mfn is the same, the VTd tables will be unnecessarily flushed.

old_entry is left untouched in the second case, since having a present
old_entry will cause the an unnecessary check to be taken at the end
of the function.

Spotted-by: Zhang, Peng Fei <zpfalpc23@gmail.com>
Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Tim Deegan <Tim.Deegan@citrix.com>
xen/arch/x86/mm/hap/p2m-ept.c